package com.es.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "hotel_document")
@Data
public class Hotel {
    @Id
    String id;      //对应ElasticSearch的_id
    String title;   //对应索引中的title
    String city;    //对应索引中的city
    Double price;   //对应索引中的price
}
